package org.edu.modules.survey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@TableName("ve_addons_survey")
@ApiModel(value = "ve_addons_survey对象", description = "问卷调查")
public class VeAddonsSurvey implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("终端")
    private Integer terminalid;
    @ApiModelProperty("应用")
    private Integer appid;
    @ApiModelProperty("模块")
    private String module;
    @ApiModelProperty("标题")
    private String title;

    public org.edu.modules.survey.entity.VeAddonsSurvey setId(Integer id) {
        this.id = id;
        return this;
    }

    @ApiModelProperty("问卷描述")
    private String remark;
    @ApiModelProperty("类型，普通问卷和测试问卷")
    private String type;
    @ApiModelProperty("题目数量")
    private Integer questioncount;
    @ApiModelProperty("创建时间")
    private Integer createtime;
    @ApiModelProperty("创建用户")
    private Integer createuserid;
    @ApiModelProperty("调研状态，1启用，0禁用")
    private Integer status;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.survey.entity.VeAddonsSurvey setTerminalid(Integer terminalid) {
        this.terminalid = terminalid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setAppid(Integer appid) {
        this.appid = appid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setModule(String module) {
        this.module = module;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setTitle(String title) {
        this.title = title;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setType(String type) {
        this.type = type;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setQuestioncount(Integer questioncount) {
        this.questioncount = questioncount;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setCreatetime(Integer createtime) {
        this.createtime = createtime;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setCreateuserid(Integer createuserid) {
        this.createuserid = createuserid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurvey setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeAddonsSurvey(id=" + getId() + ", terminalid=" + getTerminalid() + ", appid=" + getAppid() + ", module=" + getModule() + ", title=" + getTitle() + ", remark=" + getRemark() + ", type=" + getType() + ", questioncount=" + getQuestioncount() + ", createtime=" + getCreatetime() + ", createuserid=" + getCreateuserid() + ", status=" + getStatus() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.survey.entity.VeAddonsSurvey)) return false;
        org.edu.modules.survey.entity.VeAddonsSurvey other = (org.edu.modules.survey.entity.VeAddonsSurvey) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$terminalid = getTerminalid(), other$terminalid = other.getTerminalid();
        if ((this$terminalid == null) ? (other$terminalid != null) : !this$terminalid.equals(other$terminalid))
            return false;
        Object this$appid = getAppid(), other$appid = other.getAppid();
        if ((this$appid == null) ? (other$appid != null) : !this$appid.equals(other$appid)) return false;
        Object this$questioncount = getQuestioncount(), other$questioncount = other.getQuestioncount();
        if ((this$questioncount == null) ? (other$questioncount != null) : !this$questioncount.equals(other$questioncount))
            return false;
        Object this$createtime = getCreatetime(), other$createtime = other.getCreatetime();
        if ((this$createtime == null) ? (other$createtime != null) : !this$createtime.equals(other$createtime))
            return false;
        Object this$createuserid = getCreateuserid(), other$createuserid = other.getCreateuserid();
        if ((this$createuserid == null) ? (other$createuserid != null) : !this$createuserid.equals(other$createuserid))
            return false;
        Object this$status = getStatus(), other$status = other.getStatus();
        if ((this$status == null) ? (other$status != null) : !this$status.equals(other$status)) return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        if ((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId)) return false;
        Object this$module = getModule(), other$module = other.getModule();
        if ((this$module == null) ? (other$module != null) : !this$module.equals(other$module)) return false;
        Object this$title = getTitle(), other$title = other.getTitle();
        if ((this$title == null) ? (other$title != null) : !this$title.equals(other$title)) return false;
        Object this$remark = getRemark(), other$remark = other.getRemark();
        if ((this$remark == null) ? (other$remark != null) : !this$remark.equals(other$remark)) return false;
        Object this$type = getType(), other$type = other.getType();
        return !((this$type == null) ? (other$type != null) : !this$type.equals(other$type));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.survey.entity.VeAddonsSurvey;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $terminalid = getTerminalid();
        result = result * 59 + (($terminalid == null) ? 43 : $terminalid.hashCode());
        Object $appid = getAppid();
        result = result * 59 + (($appid == null) ? 43 : $appid.hashCode());
        Object $questioncount = getQuestioncount();
        result = result * 59 + (($questioncount == null) ? 43 : $questioncount.hashCode());
        Object $createtime = getCreatetime();
        result = result * 59 + (($createtime == null) ? 43 : $createtime.hashCode());
        Object $createuserid = getCreateuserid();
        result = result * 59 + (($createuserid == null) ? 43 : $createuserid.hashCode());
        Object $status = getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        Object $placeId = getPlaceId();
        result = result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
        Object $module = getModule();
        result = result * 59 + (($module == null) ? 43 : $module.hashCode());
        Object $title = getTitle();
        result = result * 59 + (($title == null) ? 43 : $title.hashCode());
        Object $remark = getRemark();
        result = result * 59 + (($remark == null) ? 43 : $remark.hashCode());
        Object $type = getType();
        return result * 59 + (($type == null) ? 43 : $type.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public Integer getTerminalid() {
        /* 40 */
        return this.terminalid;
    }

    public Integer getAppid() {
        /* 43 */
        return this.appid;
    }

    public String getModule() {
        /* 46 */
        return this.module;
    }

    public String getTitle() {
        return this.title;
    }

    public String getRemark() {
        /* 52 */
        return this.remark;
    }

    public String getType() {
        /* 55 */
        return this.type;
    }

    public Integer getQuestioncount() {
        /* 58 */
        return this.questioncount;
    }

    public Integer getCreatetime() {
        return this.createtime;
    }

    public Integer getCreateuserid() {
        /* 64 */
        return this.createuserid;
    }

    public Integer getStatus() {
        /* 67 */
        return this.status;
    }

    public Integer getPlaceId() {
        /* 70 */
        return this.placeId;
    }
}


